package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * 批量增加用户角色DTO
 * @author kaka
 */
@Getter
@Setter
@ToString
public class RoleBatchAddDTO extends BaseDTO {

    private static final long serialVersionUID = -4826756854366183592L;

    /**
     * 需要增加角色的用户id
     */
    @Size(min = 1,message = "{dto.msg.roleBatchAdd.userIdList.Size}")
    private List<String> userIdList;

    /**
     * 需要增加的角色
     */
    @NotNull(message = "{dto.msg.roleBatchAdd.roleId.NotNull}")
    private Integer roleId;
}
